#!/bin/bash

# 停止apport服务
sudo systemctl stop apport.service
sudo systemctl disable apport.service   

# 修改core dump文件名称
sudo sysctl -w kernel.core_pattern=./core-%e-%p

ulimit -c unlimited

# 如果要永久开启则还需要修改
# sudo vi /etc/security/limits.conf
# *               soft    core            unlimited
